package com.manage.project.biz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.CivilEnginneeringTreatmentMapper;
import com.manage.project.biz.domain.CivilEnginneeringTreatment;
import com.manage.project.biz.service.ICivilEnginneeringTreatmentService;

/**
 * 病害处治Service业务层处理
 * 
 * @author ycd
 * @date 2022-05-30
 */
@Service
public class CivilEnginneeringTreatmentServiceImpl implements ICivilEnginneeringTreatmentService 
{
    @Autowired
    private CivilEnginneeringTreatmentMapper civilEnginneeringTreatmentMapper;

    /**
     * 查询病害处治
     * 
     * @param tTreatmentId 病害处治主键
     * @return 病害处治
     */
    @Override
    public CivilEnginneeringTreatment selectCivilEnginneeringTreatmentByTTreatmentId(Long tTreatmentId)
    {
        return civilEnginneeringTreatmentMapper.selectCivilEnginneeringTreatmentByTTreatmentId(tTreatmentId);
    }

    /**
     * 查询病害处治列表
     * 
     * @param civilEnginneeringTreatment 病害处治
     * @return 病害处治
     */
    @Override
    public List<CivilEnginneeringTreatment> selectCivilEnginneeringTreatmentList(CivilEnginneeringTreatment civilEnginneeringTreatment)
    {
        return civilEnginneeringTreatmentMapper.selectCivilEnginneeringTreatmentList(civilEnginneeringTreatment);
    }

    /**
     * 新增病害处治
     * 
     * @param civilEnginneeringTreatment 病害处治
     * @return 结果
     */
    @Override
    public int insertCivilEnginneeringTreatment(CivilEnginneeringTreatment civilEnginneeringTreatment)
    {
        return civilEnginneeringTreatmentMapper.insertCivilEnginneeringTreatment(civilEnginneeringTreatment);
    }

    /**
     * 修改病害处治
     * 
     * @param civilEnginneeringTreatment 病害处治
     * @return 结果
     */
    @Override
    public int updateCivilEnginneeringTreatment(CivilEnginneeringTreatment civilEnginneeringTreatment)
    {
        return civilEnginneeringTreatmentMapper.updateCivilEnginneeringTreatment(civilEnginneeringTreatment);
    }

    /**
     * 批量删除病害处治
     * 
     * @param tTreatmentIds 需要删除的病害处治主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringTreatmentByTTreatmentIds(Long[] tTreatmentIds)
    {
        return civilEnginneeringTreatmentMapper.deleteCivilEnginneeringTreatmentByTTreatmentIds(tTreatmentIds);
    }

    /**
     * 删除病害处治信息
     * 
     * @param tTreatmentId 病害处治主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringTreatmentByTTreatmentId(Long tTreatmentId)
    {
        return civilEnginneeringTreatmentMapper.deleteCivilEnginneeringTreatmentByTTreatmentId(tTreatmentId);
    }
}
